﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

// 枚举定义文件
// Author   : 黄乙冬
// Date     : 2011-08-31
namespace ajayumi.develop.win32.Transport.WCF.Services
{
    /// <summary>
    /// 传输方式
    /// </summary>
    public enum TransportAction
    {
        /// <summary>
        /// /上传
        /// </summary>
        Upload,
        /// <summary>
        /// 上传故障日志
        /// </summary>
        UploadFaultLog,
        /// <summary>
        /// 下载
        /// </summary>
        Download
    }

    /// <summary>
    /// 传输状态
    /// </summary>
    public enum TransStatus
    {
        None,
        /// <summary>
        /// 暂停
        /// </summary>
        Pause,
        /// <summary>
        /// 等待中
        /// </summary>
        Waiting,
        /// <summary>
        /// 出错
        /// </summary>
        Error,
        /// <summary>
        /// 连接传输中
        /// </summary>
        Connecting,
        /// <summary>
        /// 完成
        /// </summary>
        Completed
    }

    /// <summary>
    /// 操作动作
    /// </summary>
    public enum OpAction
    {
        /// <summary>
        /// 开启
        /// </summary>
        TurnOn,
        /// <summary>
        /// 关闭
        /// </summary>
        TurnOff,
    }

    /// <summary>
    /// 应用程序升级运行模式
    /// </summary>
    public enum UpgradeRunMode
    {
        /// <summary>
        /// 标准模式，就是文件集合
        /// </summary>
        Normal = 0,
        /// <summary>
        /// 压缩包模式
        /// </summary>
        CompressionPackage = 1,
        /// <summary>
        /// 安装包模式
        /// </summary>
        InstallationPackage = 2
    }

    /// <summary>
    /// 升级模式
    /// </summary>
    public enum UpgradeMode
    {
        /// <summary>
        /// 差异
        /// </summary>
        Diff = 0,
        /// <summary>
        /// 完整
        /// </summary>
        Full = 1,
        /// <summary>
        /// 自定义
        /// </summary>
        Custom = 2
    }
}
